package com.imooc.product.common;

import lombok.Data;

/**
 * 减库存入参
 * @author steve
 * @date 2020/6/19 11:21
 */
@Data
public class DecreaseStockInput {

    /** 购物车商品id */
    private String productId;

    /** 购物车商品数量 */
    private Integer productQuantity;

    /**
     * 需要加入无参构造，不然会报反序列化的错
     */
    public DecreaseStockInput() {
    }

    public DecreaseStockInput(String productId, Integer productQuantity) {
        this.productId = productId;
        this.productQuantity = productQuantity;
    }
}
